package com.cap.bts.crmdp.dealer.card.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cap.bts.framework.common.domain.BaseDomain;


/**
 * The persistent class for the tm_crm_card_definition database table.
 * 
 */
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Entity
@Table(name="TM_CRM_CARD_DEFINITION")
public class CardDefinition extends BaseDomain implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	
	private Integer activationCodeLength;

	private Integer activationCodeType;

	private Integer checkBitEnabeld;

	private Integer isPhysicalCard;

	private Integer lengthOfChar;

	private Integer lengthOfDigital;

	private String name;

	private String perfix;
	
	private String cardNum;

	private Integer status;

	public CardDefinition() {
	}

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name="ACTIVATION_CODE_LENGTH")
	public Integer getActivationCodeLength() {
		return this.activationCodeLength;
	}

	public void setActivationCodeLength(Integer activationCodeLength) {
		this.activationCodeLength = activationCodeLength;
	}

	@Column(name="ACTIVATION_CODE_TYPE")
	public Integer getActivationCodeType() {
		return this.activationCodeType;
	}

	public void setActivationCodeType(Integer activationCodeType) {
		this.activationCodeType = activationCodeType;
	}

	@Column(name="CHECK_BIT_ENABELD")
	public Integer getCheckBitEnabeld() {
		return this.checkBitEnabeld;
	}

	public void setCheckBitEnabeld(Integer checkBitEnabeld) {
		this.checkBitEnabeld = checkBitEnabeld;
	}

	@Column(name="IS_PHYSICAL_CARD")
	public Integer getIsPhysicalCard() {
		return this.isPhysicalCard;
	}

	public void setIsPhysicalCard(Integer isPhysicalCard) {
		this.isPhysicalCard = isPhysicalCard;
	}

	@Column(name="LENGTH_OF_CHAR")
	public Integer getLengthOfChar() {
		return this.lengthOfChar;
	}

	public void setLengthOfChar(Integer lengthOfChar) {
		this.lengthOfChar = lengthOfChar;
	}

	@Column(name="LENGTH_OF_DIGITAL")
	public Integer getLengthOfDigital() {
		return this.lengthOfDigital;
	}

	public void setLengthOfDigital(Integer lengthOfDigital) {
		this.lengthOfDigital = lengthOfDigital;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPerfix() {
		return this.perfix;
	}

	public void setPerfix(String perfix) {
		this.perfix = perfix;
	}

	
	@Column(name="CARD_NUM")
    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}